<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数演大数据交换平台</title>
    <link href="../assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link href="../assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" />
    <link href="../assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="../assets/global/css/components.min.css" rel="stylesheet" type="text/css" />
    <link href="../assets/global/css/plugins.min.css" rel="stylesheet"  type="text/css" />
    <link rel="stylesheet" href="../assets/global/plugins/layui/css/layui.css"/>
    <link rel="stylesheet" href="../assets/custom/css/changeother.css"/>
</head>
<body class="contentPadding">
<form  class="form-body margin-top-20" id="myform">
    <div class="form-group">
        <span class="form-label col-xs-2">原密码:</span>
        <div class="col-xs-9">
            <input type="text" name="oldPwd" required class="oldPwd" value="">
        </div>

    </div>
    <div class="form-group">
        <span class="form-label col-xs-2">新密码:</span>
        <div class="col-xs-9">
            <input type="text" name="newPwd" id="newPwd" required class="newPwd" value="">
        </div>

    </div>
    <div class="form-group">
        <span class="form-label col-xs-2">确认密码:</span>
        <div class="col-xs-9">
            <input type="text" name="confirm" required class="confirmPwd" value="">
        </div>
    </div>
    <button type="submit" class="btn-confirm display_none">确认</button>

</form>
</body>
<script src="../assets/global/plugins/jquery.min.js" type="text/javascript"></script>
<script src="../assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="../assets/global/plugins/layui/layui.all.js"></script>
<script src="../assets/pages/scripts/jquery.validate.js"></script>
<script>
    $(".form-body").validate({
        debug:true,
        rules : {
            newPwd: {
                required: true,
              //  minlength: 5
            },
            confirm: {
                required: true,
            //    minlength: 5,
                equalTo: "#newPwd"
            }
        },
        messages:{
            "oldPwd":{
                required: "请输入原密码"
            },
            "newPwd":{
                required: "请输入新密码",
            },
            "confirm" :{
                required: "请确认密码",
                equalTo: "两次输入密码不一致"
            }
        }
    });

    function formValidator(){
      var  validator = $("#myform").valid();
        //    console.log(validator);
        return validator;
    }

</script>
</html>